home *** CD-ROM | disk | FTP | other *** search
/ Pocket PC Game Programming / Pocket PC Game Programming.iso / source.exe / CH15 / Project02 / CWaveOut.h < prev    next >
C/C++ Source or Header  |  2001-02-10  |  739b  |  33 lines

  1. ////////////////////////////////////////////////////////////
  2. // Pocket PC Game Programming
  3. // Chapter 10: Sound Effects and Music
  4. //
  5. // CWaveOut Header File
  6. //
  7. // This file includes the CWaveOut definition.
  8. // Only supports uncompressed Windows PCM wave format.
  9. //
  10. ////////////////////////////////////////////////////////////
  11.  
  12. #pragma once
  13.  
  14. class CWaveOut
  15. {
  16. private:
  17.     DWORD dwBytesRead;
  18.     LPCTSTR lpWave;
  19.     BOOL bRepeat;
  20.  
  21. public:
  22.     CWaveOut();
  23.     CWaveOut(LPTSTR lpFile);
  24.     ~CWaveOut();
  25.     BOOL Load(LPTSTR lpFile);
  26.     void Play();
  27.     void Stop();
  28.     DWORD GetLength() { return dwBytesRead; };
  29.     void SetRepeat(BOOL bVal) { bRepeat = bVal; };
  30.     BOOL Repeating() { return bRepeat; };
  31. };
  32.  
  33.